package com.qipay.sp.excutor.xinyu;

import com.qipay.core.utils.SpringContextUtil;
import com.qipay.sp.excutor.AbstractExcutor;
import com.qipay.sp.excutor.ExcutorFactory;
import com.qipay.sp.excutor.yitong.YtAlipayWapExcutor;
import com.qipay.sp.excutor.yitong.YtWxNativeExcutor;
import com.qipay.sp.excutor.yitong.YtWxTradeQueryExcutor;
import com.qipay.sp.excutor.yitong.YtWxWapExcutor;
import org.springframework.stereotype.Component;

@Component
public class XyFactory implements ExcutorFactory {

    @Override
    public AbstractExcutor createAlipayWapExcutor() {
        return (AbstractExcutor) SpringContextUtil.getBean(XyAlipayWapExcutor.class);
    };

    @Override
    public AbstractExcutor createAlipayNativeExcutor() {
        return (AbstractExcutor) SpringContextUtil.getBean(XyAlipayNativeExcutor.class);
    };
}
